<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj={
            "name":"lili",
            age:18,
            "a bc":100,
            0:1001,
            [Symbol()]:"aaa"
        }
       //删除  将属性的值变为null
    //    obj["age"]=null;//obj.age=null;
    //    console.log(obj);

    //删除 将属性从对象上移除
       //delete obj["age"];
       delete obj.age;
       console.log(obj);


       //修改--覆盖原来的值
    //    obj.age=23;
    //    obj["name"]="lisa";
    //    console.log(obj);



        //console.log(obj["Symbol()"]);//undefined  唯一

        //可以解决key为Symbol,获取的问题(了解)
        // var sa=Symbol("aa");
        // obj[sa]="bbbb";
        // console.log(obj);
        // console.log(obj[sa]);

        //增
        // obj["num"]=200;
        // obj.numa=300;
        // console.log(obj);

        
    </script>
</body>
</html>